﻿using Abp.Application.Services;
using Abp.Application.Services.Dto;
using CPPProject.CPP.Dto;
using Microsoft.AspNetCore.Http;
using System;
using System.Collections.Generic;
using System.Text;
using System.Threading.Tasks;

namespace CPPProject.CPP
{
   public interface ICPPAttachmentAppService : IAsyncCrudAppService<CPPAttachmentDto, Guid, PagedResultRequestDto, CreateCPPAttachmentDto, UpdateCPPAttachmentDto>
    {
        Task<string> UploadFiles(IFormFile[] files, string objectId = "", string objectName = "", string objectField = "");
        Task<byte[]> GetFileAsync(string id);
        /// <summary>
        /// 获取缓存文件
        /// </summary>
        /// <param name="key"></param>
        /// <returns></returns>
        byte[] GetFileCache(string key);
    }
}
